/*
 * Copyright (c) 2025 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef MC_CONTINUE_H
#define MC_CONTINUE_H

#include "interface/i_continue.h"
#include <mc/engine.h>

namespace dev {

class Continue : public mc::engine::object<Continue> {
public:
    MC_OBJECT(Continue, "Continue", "/bmc/dev/Debounce/Continue/${object_name}", (IContinue))

    Continue()  = default;
    ~Continue() = default;
    bool init(mc::mutable_dict& csr_object)
    {
        from_variant(csr_object, *this);
        return true;
    }

    IContinue i_continue;

    // 自定义序列化/反序列化
    static void from_variant(const mc::dict& d, Continue& obj)
    {
        mc::from_variant(d, obj.i_continue);
    }
};

} // namespace dev

#endif // MC_CONTINUE_H
